package com.leo.business;

import java.util.List;
import com.leo.entity.User;
import com.leo.formbean.AdminForm;
import com.leo.vo.Result;

public interface AdminBusiness {
	
	public Result regist(AdminForm adminForm);
	
	public long getCount(boolean checkQueryRight,String searchKey,String keyType);

	public boolean isLogin();
	
	public Result Login(AdminForm adminForm);
	
	public void logout();
	
	public List listUsers(boolean checkQueryRight, String searchKey, String keyType, int pageIndex, int pageSize);
	
	public User getUser(AdminForm adminForm);
	
	public Result userUpdate(User user);

	public Result userAdd(User user);
	
	public void deleteUsers(String usernameSet);
}
